<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body">
	<div class="data-panel">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="data-panel-body">
				<div class="data-form">
					<dl>
						<dt><span class="x-star">*</span>分类名称：</dt>
						<dd>
							<input type="text" name="name" ng-model="data.name" class="x-ipt" placeholder="请输入名称" required />
							<div class="x-error" ng-if="interacted(form.name)" ng-messages="form.name.$error">
                                <span ng-message="required">分类名称不能为空</span>
                            </div>
						</dd>
					</dl>
					<dl>
						<dt><span class="x-star">*</span>分类编码：</dt>
						<dd>
							<input type="text" name="code" ng-model="data.code" class="x-ipt" placeholder="请输入分类编码" required />
							<div class="x-error" ng-if="interacted(form.code)" ng-messages="form.code.$error">
                                <span ng-message="required">编码不能为空</span>
                            </div>
						</dd>
					</dl>
					<!-- <dl>
						<dt>排序值：</dt>
						<dd><input type="text" name="sort" ng-model="data.sort" class="x-ipt" /></dd>
					</dl> -->
				</div>
			</div>
			<div class="data-panel-footer">
				<div class="data-tools">
					<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
				</div>
			</div>
		</form>
	</div>
</div>